package com.example.yiwei.crm.view.activity.contactActivity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

import com.example.yiwei.crm.R;

public class QRCMessageActivity extends AppCompatActivity {
TextView txt_name,txt_phone,txt_respecful,txt_address;
    String contact_name, contact_respectful, contact_mobile_phone,contact_address;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_erweima_message);
        String message=getIntent().getStringExtra("erweima");
        Log.d("aa",message);
        String [] str=message.split("/");
        Log.d("aa",str.length+"");
        contact_name=str[3];
        contact_respectful=str[2];
        contact_mobile_phone=str[0];
        contact_address=str[1];


        txt_address= (TextView) findViewById(R.id.QRCMessage_txt_contact_address);
        txt_name= (TextView) findViewById(R.id.QRCMessage_txt_contact_name);
        txt_phone= (TextView) findViewById(R.id.QRCMessage_txt_contact_mobile_phone);
        txt_respecful= (TextView) findViewById(R.id.QRCMessage_txt_contact_respectful);

        txt_name.setText(contact_name);
        txt_respecful.setText(contact_respectful);
        txt_address.setText(contact_address);
        txt_phone.setText(contact_mobile_phone);

    }

}
